BIC to choose the number of components in a model based clustering using mixtures of von Mises-Fisher distributions
bic.mixvmf(x, A, n.start = 20)
A matrix containing directional data.
The maximum number of clusters to be tested. Default value is 3.
The number of random starts to try. See also R's built-in function kmeans
for more information about this.
A list including:
The BIC values for all the models tested.
A plot of the BIC values.
The run time of the algorithm. A numeric vector. The first element is the user time, the second element is the system time and the third element is the elapsed time.
If the data are not unit vectors, they are transformed into unit vectors.
Hornik, K. and Grun, B. (2014). movMF: An R package for fitting mixtures of von Mises-Fisher distributions. Journal of Statistical Software, 58(10):1--31.
# NOT RUN {
x <- as.matrix( iris[, 1:4] )
x <- x / sqrt( rowSums(x^2) )
bic.mixvmf(x, 5)
# }
Run the code above in your browser using DataLab